package com.redis.springbootredis.controller;

import com.redis.springbootredis.service.impl.OrderTestServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 * @create 2020-11-02 20:10
 */
@RestController
public class TestController {

    @Autowired
    OrderTestServiceImpl orderTestService;

    @RequestMapping("/start")
    public String start(){
        orderTestService.serviceStart();
        return "秒杀商品已准备好，可以开始";
    }

    @RequestMapping("/end")
    public String end(){
        orderTestService.serviceEnd();
        return "秒杀结束";
    }
}
